import { ConfigProvider } from 'antd'

import AekButton from '../AekButton'

/**
 * @typedef {import("../AekButton").AekButtonProps} AekLinkButtonProps
 */

/**
 * 无边距按钮
 * @param {AekLinkButtonProps} props
 * @returns
 */
const AekLinkButton = props => {
  return (
    <ConfigProvider
      theme={{
        components: {
          Button: {
            paddingBlockSM: 0,
            paddingInlineSM: 0,
          },
        },
      }}
    >
      <AekButton {...props} type='link' size='small' />
    </ConfigProvider>
  )
}

export default AekLinkButton
